package com.ydgk.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Date;

public class Book {
    private Integer bid;
    private String bname;
    private String bauthor;
    private Integer bprice;
    @JSONField(format = "yyyy-MM-dd")
    private Date bdate;
    private Integer sid;

    public Book() {
    }

    public Book(Integer bid, String bname, String bauthor, Integer bprice, Date bdate, Integer sid) {
        this.bid = bid;
        this.bname = bname;
        this.bauthor = bauthor;
        this.bprice = bprice;
        this.bdate = bdate;
        this.sid = sid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getBauthor() {
        return bauthor;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    public Integer getBprice() {
        return bprice;
    }

    public void setBprice(Integer bprice) {
        this.bprice = bprice;
    }

    public Date getBdate() {
        return bdate;
    }

    public void setBdate(Date bdate) {
        this.bdate = bdate;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", bname='" + bname + '\'' +
                ", bauthor='" + bauthor + '\'' +
                ", bprice=" + bprice +
                ", bdate=" + bdate +
                ", sid=" + sid +
                '}';
    }
}
